<include file="Public/header" />
<div data-role="page" >
    <div data-role="header" data-position="fixed" data-tap-toggle="false"data-theme="f">
      <a href="#sharePanel" class="btn btn-primary btn-sm no-style-btn" ><i class="fa fa-list"></i></a>
      <h1>用户详情</h1>
    </div>
    <div data-role="panel" id="sharePanel"> 
      <h4><small><strong>信息列表</strong></small></h4>
        <a class="list-group-item text-center" href="__APP__/Home/Index/userHome/user/<{$userHomeRow[0]['username']}>/" data-ajax="false">基本信息<i class="pull-right fa fa-user"></i></a>
        <if condition="$myFlag eq 1">
          <a class="list-group-item text-center" href="__APP__/Home/Index/userHomeNote/user/<{$userHomeRow[0]['username']}>/" data-ajax="false">我的记录<i class="pull-right fa fa-list"></i></a>
        </if>
        <a class="list-group-item text-center" href="__APP__/Home/Index/userHomeShare/user/<{$userHomeRow[0]['username']}>/" data-ajax="false">所有分享<i class="pull-right fa fa-share-alt"></i></a>
        <a class="list-group-item text-center" href="__APP__/Home/Index/userHomeCollect/user/<{$userHomeRow[0]['username']}>/" data-ajax="false">所有收藏<i class="pull-right fa fa-heart"></i></a>
    </div>
<div data-role="main" class="ui-content">
    <if condition="$userHomeFlag eq 1">
            <block name="userHomeRight">
                <div class="panel panel-default user-home">
                <div class="panel-heading">
                    <{$userHomeRow[0]['username']}> 的个人主页
                    <if condition="$myFlag eq 1">
                        <a href="__APP__/Home/User/myChange/" data-ajax="false" class="btn btn-warning btn-xs pull-right"><font class="color-fff">编辑个人资料</font></a>
                    </if>
                </div>
                    <div class="list-group">
                        <li class="list-group-item">
                            <label>头像 </label>
                            <img src="__PUBLIC__/uploads/user/<{$userHomeRow[0]['userlogo']}>" alt="<{$userHomeRow[0]['username']}>" height="50px"/>
                        </li>
                        <li class="list-group-item"><label><small class="color-888"><strong>用户名</strong></small></label><{$userHomeRow[0]['username']}></li>
                        <li class="list-group-item"><label><small class="color-888"><strong>性别</strong></small></label><{$userHomeRow[0]['usersex']}></li>
                        <li class="list-group-item"><label><small class="color-888"><strong>注册时间</strong></small></label><{$userHomeRow[0]['userregtime']}></li>
                        <li class="list-group-item"><label><small class="color-888"><strong>QQ</strong></small></label><{$userHomeRow[0]['userqq']}></li>
                        <li class="list-group-item"><label><small class="color-888"><strong>微信</strong></small></label><{$userHomeRow[0]['userwechat']}></li>
                        <li class="list-group-item"><label><small class="color-888"><strong>所在地</strong></small></label><{$userHomeRow[0]['useraddress']}></li>
                        <li class="list-group-item" title="<{$userHomeRow[0]['userinterest']}>"><label><small class="color-888"><strong>兴趣</strong></small></label><{$userHomeRow[0]['userinterest']}></li>
                    </div>
                </div>
            </block>
    <else />
      <div class="col-md-12">
        <div class="jumbotron">
            <h2 class="text-center"><i class="fa fa-warning"></i></h2>
          <h2 class="text-center">用户不存在</h2>
        </div>
      </div>
    </if>
</div><!--content end-->


<include file="Public/footer"/>